1 <?php
2 include(
"header.php");
3 include(
"sidebar.php");
4 include(
"dbconnection.php");
5 $result= mysql_query(
"select * from service where serviecid='$_GET[vserviceid]'");
6 $row1 = mysql_fetch_array($result);
7 ?>
8         
9                             
10         <div id=
"main">
11             
12             <a name=
"TemplateInfo"></a>
13             <h1>Vehicle Service</h1>
14             <?php

15 if
($ctins == 1)
16 {
17     echo
"<center><b>Employees account created successfully...</b></center><br>";
18     echo
"<center><b><a href='emplogin.php'>Click here to Login.</a></b></center>";
19 }

20 else

21 {
22     ?>
23         <form id=
"form1" name="form1" method="post" action="">
24           <table width=
"494" border="1">
25             <tr>
26               <th width=
"58" scope="col">Sevice ID</th>
27               <th width=
"100" scope="col">&nbsp;<?php echo $row1[serviecid]; ?> </th>
28             </tr>
29             <?php
30             $result1= mysql_query(
"select * from customer where custid='$row1[custid]'");
31 $arrrec1= mysql_fetch_array($result1);
32             ?>
33             <tr>
34               <th scope=
"col">Customer ID</th>
35               <th scope=
"col">&nbsp;<?php echo $arrrec1[custid]; ?> </th>
36             </tr>
37             <tr>
38               <th scope=
"col">Customer name</th>
39               <th scope=
"col">&nbsp; <?php echo $arrrec1[fname]. " ". $arrrec1[lname]; ?></th>
40             </tr>
41             <tr>
42               <th scope=
"col">Vehicle name</th>
43               <th scope=
"col">&nbsp;<?php echo $row1[vehiclename]; ?> </th>
44             </tr>
45             <tr>
46               <th scope=
"col">Vehicle No.</th>
47               <th scope=
"col">&nbsp;<?php echo $row1[vehicleno]; ?> </th>
48             </tr>
49             <tr>
50               <th scope=
"col">Date</th>
51               <th scope=
"col">&nbsp;<?php echo $row1["date"]; ?> </th>
52             </tr>
53             <tr>
54               <th scope=
"col">Address</th>
55               <th scope=
"col">&nbsp;<?php echo $row1[address]; ?> </th>
56             </tr>
57             <tr>
58               <th scope=
"col">City</th>
59               <th scope=
"col">&nbsp;<?php echo $row1[city]; ?> </th>
60             </tr>
61             <tr>
62               <th scope=
"col">Landmark</th>
63               <th scope=
"col">&nbsp;<?php echo $row1[landmark]; ?> </th>
64             </tr>
65             <tr>
66               <th scope=
"col">ZIP Code</th>
67               <th scope=
"col">&nbsp;<?php echo $row1[zipcode]; ?> </th>
68             </tr>
69             <tr>
70               <th scope=
"col">Status</th>
71               <th scope=
"col">&nbsp;<?php echo $row1[status]; ?> </th>
72             </tr>
73             <tr>
74               <th colspan=
"2" scope="col"><a href="viewservice.php">&lt;&lt;Back</a></th>
75             </tr>
76           <?php
77           
while($arrrec= mysql_fetch_array($result))
78           {
79 $result1= mysql_query(
"select * from customer where custid='$arrrec[custid]'");
80 $arrrec1= mysql_fetch_array($result1);
81            echo
" <tr>
82               <td>&nbsp; $arrrec[serviecid]</td>"
;
83             echo
"<td>&nbsp; $arrrec1[fname] $arrrec1[lname]</td>
84               <td>&nbsp; $arrrec[vehiclename]</td>
85               <td>&nbsp; $arrrec[date]</td>
86               <td>&nbsp; $arrrec[address]
87                     <br>&nbsp; City: $arrrec[city]
88                     <br>&nbsp; landmark: $arrrec[landmark]
89                     <br>&nbsp; PIN: $arrrec[zipcode]</td>
90               <td>&nbsp; More | Billing</td>
91             </tr>"
;
92           }
93           ?>
94           </table>
95         </form>
96     <?php
97     }
98     ?>
99             <p>&nbsp;</p>
100 <br />
101                                             
102         </div>
103         
104 <!-- wrap ends here -->
105 </div>
106         
107 <?php
108 include(
"footer.php");
109 ?>


Gõ tìm kiếm nhanh...